<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id (主键)
 * @property integer $mall_id 
 * @property string $title 标题
 * @property string $type update更新urgent紧急important重要
 * @property string $content 
 * @property integer $is_delete 
 * @property mixed $created_at 创建时间
 */
class TejianAdminNotice extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'tejian_admin_notice';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    public function getnotice(){
        return $this->where('is_delete',0)->orderBy('id','desc')->limit(10)->get();
    }

    
    
}
